home *** CD-ROM | disk | FTP | other *** search
- global cToolBoxSprite, cGoAwayBoxSprite, cBGSliderSprite, cFGSliderSprite, cConstrain1, cConstrain2, cDefaultShowLoc, cDefaultHideLoc, gToolBoxOpen
-
- on mouseUp
- set newLocDiff to cDefaultHideLoc - the loc of sprite cToolBoxSprite
- set the constraint of sprite cBGSliderSprite to 0
- set the constraint of sprite cFGSliderSprite to 0
- repeat with x = cToolBoxSprite to cGoAwayBoxSprite
- set the loc of sprite x to the loc of sprite x + newLocDiff
- end repeat
- updateStage()
- set the constraint of sprite cBGSliderSprite to cConstrain1
- set the constraint of sprite cFGSliderSprite to cConstrain2
- set cColorLeft to the left of sprite cConstrain1
- set gToolBoxOpen to 0
- end
-